package com.edu.demo;

import cn.dev33.satoken.SaManager;
import com.edu.demo.quartz.scheduler.DeleteRubbishUtil;
import org.quartz.SchedulerException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DemoApplication {
    //是springboot工程的入口
    public static void main(String[] args) throws SchedulerException {
        SpringApplication.run(DemoApplication.class, args);
        System.out.println("Sa-Token，启动！！！ 配置如下：" + SaManager.getConfig());
        DeleteRubbishUtil.addJob();
    }
}
